module.exports = {
  publicPath:"/static",  // 开发环境把这个注解掉
  lintOnSave: false,
  devServer:{
    port: 8080,
    open: true,
    overlay:{
      errors: true,
      warnings: true
    },
    /**
     * @Dir 配置跨域
     * @date 2020年07月30日10:38:59
     */ 

    proxy: {
      "/api": {
        target: "https://www.risesin.com/api",
        changeOrigin: true,
        pathRewrite:{
          "^/api": ''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        src: "@",
        assets: "@/assets",
        components: "@/components",
        views: "@/views",
        utils: "@/utils",
        api: "@/api"
      }
    }
  }
}
